package com.cloudbroker.bcs.platform.ltb.middle.service.impl;

import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.common.service.base.ServiceBase;
import com.cloudbroker.bcs.platform.ltb.middle.dao.ClientMsgDAO;
import com.cloudbroker.bcs.platform.ltb.middle.entity.BlackUser;
import com.cloudbroker.bcs.platform.ltb.middle.entity.ClientMsg;
import com.cloudbroker.bcs.platform.ltb.middle.service.ClientMsgService;
import com.cloudbroker.bcs.platform.ltb.middle.service.base.TenantServiceImplBase;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by lili19289 on 2016/9/18.
 */
@Service
public class ClientMsgServiceImpl extends TenantServiceImplBase<ClientMsg,String> implements ClientMsgService {

    @Resource
    private ClientMsgDAO clientMsgDAO;

    @Override
    protected DAOBase<ClientMsg, String> getDAO() {
        return clientMsgDAO;
    }

    public ClientMsg findByType(ClientMsg msg){
        return clientMsgDAO.findByType(msg);
    }
}
